<div class="left">
	<div id="note">
		<div class="sub-titles"><?php echo $note['Note']['title']; ?></div>
		<div class="time"><?php echo $note['Note']['updated']; ?></div>
		<div class="contents">
			<?php echo $formater->text($note['Note']['body']); ?>
			&nbsp;
		</div>
	</div>
	<div class="comments">
		<div class="sub-titles"> </div>
	<ul>
		<?php 	foreach ($noteComments as $noteComment): ?>
		<li>
			<dl class="blk">
				<dt>
					<?php echo $avatar->userLink($noteComment['User']) ?>
			</dt>
			<dd><?php echo $linker->userLink($noteComment['User']) ?></dd>
			</dl>
			<span ><?php echo $formater->text($noteComment['NoteComment']['body']); ?></span>
			<p class="time"><?php echo $noteComment['NoteComment']['created']; ?></p>
			<div class="clear"></div>
		</li>
		<?php endforeach; ?>
	</ul>
	</div>
	<div class="comments">
		<?php echo $this->Form->create('NoteComment',array('url'=>'/note_comments/add'));?>
	<div class="sub-titlse"><?php __('你的评论'); ?></div>
	
	<?php
		echo $this->Form->textArea('body');
		echo $this->Form->hidden('user_id',array('value'=>$cuid));
		echo $this->Form->hidden('note_id',array('value'=>$note['Note']['id']));
	?>
<?php echo $this->Form->end(__('添加', true));?>
	</div>
</div>

<div class="right">
	<ul>
		<li><?php echo $this->Html->link(__('修改', true), array('action' => 'edit', $note['Note']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('删除', true), array('action' => 'delete', $note['Note']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $note['Note']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('返回日记', true), "/people/{$cuid}/diary"); ?> </li>
	</ul>
</div>
